package com.will.txj.wy.files.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.will.txj.common.files.SysFile;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wen-yi
 * @since 2021-12-04
 */
public interface ISysFileService extends IService<SysFile> {

    boolean upFile(MultipartFile file);

    boolean upImageFile(MultipartFile file);

    boolean downloadFile(String id, HttpServletResponse response);

    boolean deleteFile(String id);

    boolean deleteFileById(String id);

    boolean upFileSftp(MultipartFile file);

    boolean downloadFileSftp(String id, HttpServletResponse response);

    boolean deleteFileSftp(String id);

    boolean deleteFileSftpById(String id);

    boolean showImage(String image, HttpServletResponse response);

    boolean showImageSftp(String image, HttpServletResponse response);
}
